use getset::{Getters, Setters};
use serde::{Deserialize, Serialize};

use validator_derive::Validate;

#[derive(Serialize, Deserialize, Validate, Clone, Debug, Getters, Setters, Default)]
#[getset(get = "pub", set = "pub")]
pub struct AdminLogin {
    #[validate(required)]
    #[validate(length(min = 5, message = "账号最少5个字符"))]
    userName: Option<String>,
    password: Option<String>,
    hcaptcha_response: Option<String>,
}

#[derive(Serialize, Deserialize, Validate, Clone, Debug, Getters, Setters, Default)]
#[getset(get = "pub", set = "pub")]
pub struct EmptyVo {
   
}
